function sleep(ms) {
  let p = new Promise(function (resolve, reject) {
    setTimeout(function () {
      resolve(111)
    }, ms)
  })
  return p
}

sleep(1000).then(res => {
  console.log(res);
})





